package com.zzp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzp.pojo.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 商品分类 Mapper 接口
 * </p>
 *
 * @author 芜湖起飞！
 * @since 2021-12-02
 */
@Mapper
public interface CategoryMapper extends BaseMapper<Category> {
    int deleteByPrimaryKey(Integer categoryId);

    Category findByCategoryId(Integer categoryId);

    List<Category> findAll(Integer parentId);


}
